//
//  UICollectionView+WSExtension.h
//  Component
//
//  Created by 王诗文 on 2018/7/26.
//  Copyright © 2018年 王诗文. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WSCollectionCellProtocol.h"

@protocol WSCollectCellSubViewsActionDelegate<NSObject>
-(void)wsCellSubViewsClickedIndexPath:(NSIndexPath *)indexPath data:(id)cellDeliveryData;
@end



@interface UICollectionViewCell (WSExtension)<WSCollectionCellProtocol>

@property(nonatomic, weak)  id<WSCollectCellSubViewsActionDelegate>wsDelegate;
@property(nonatomic, strong) NSIndexPath *indexPath;
@property(nonatomic, strong) id attachObj;   //自定义传输参数

- (void)wsSubViewsClickedData:(id)data;

@end





@interface UICollectionView (WSExtension)

//注册cell
- (void)wsRegisterCellName:(NSString *)name;

//注册header
- (void)wsRegisterHeaderName:(NSString *)name;

//注册footer
- (void)wsRegisterFooterName:(NSString *)name;

@end
